package com.newegg.nlp.arangodb.model;

import com.arangodb.springframework.annotation.Edge;
import com.arangodb.springframework.annotation.From;
import com.arangodb.springframework.annotation.To;
import com.newegg.nlp.arangodb.BaseModel;

@Edge
public class CategoryItem extends BaseModel{
	
	@From
	Category category;
	
	@To
	Item item;
	
	public CategoryItem(Category category, Item item) {
		super();
		this.setId(category.getId() + "_" + item.getId());
		this.category = category;
		this.item = item;
	}

	public Category getCategory() {
		return category;
	}

	public void setCategory(Category category) {
		this.category = category;
	}

	public Item getItem() {
		return item;
	}

	public void setItem(Item item) {
		this.item = item;
	}
}
